package com.example.pineapple.entity;
// URL模板
/* http://fy.iciba.com/ajax.php */
// URL实例
/* http://fy.iciba.com/ajax.php?a=fy&f=auto&t=auto&w=hello%20world */
// 参数说明：
// a：固定值 fy
// f：原文内容类型，日语取 ja，中文取 zh，英语取 en，韩语取 ko，德语取 de，西班牙语取 es，法语取 fr，自动则取 auto
// t：译文内容类型，日语取 ja，中文取 zh，英语取 en，韩语取 ko，德语取 de，西班牙语取 es，法语取 fr，自动则取 auto
// w：查询内容

/**
 * @ClassName Translation
 * @Description 用于接受服务器返回数据
 * @Author Hermit
 * @Date 2021/7/2 11:54
 */
public class ResponseEntity<T> {

    private T content;

    private Boolean succeed;

    private String msg;

    private int code;


    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }

    public Boolean getSucceed() {
        return succeed;
    }

    public void setSucceed(Boolean succeed) {
        this.succeed = succeed;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

}
